<p class="Head1"><help:link Id="66497">Switch Function [Runtime]</help:link></p>
<p class="Paragraph">Evaluates a list of arguments, consisting of an expression followed by a value. The Switch function returns a value associated with the expression passed with this function.</p>
<p class="Paragraph">The <span class="T1">Switch</span> function evaluates the expressions from left to right, and returns the value assigned to the function expression. If expression and value are not given as a pair, a runtime error will occur.</p>
<p class="Paragraph">Expression: The expression to be evaluated.</p>
<p class="Paragraph">Value: The value to be returned if the expression is True.</p>
<p class="Paragraph">In the following example the <span class="T1">Switch</span> function is used to assign the appropriate gender to the name given to the function:</p>